-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Kotlin] fix invalid code when allOf is used #12594
[Kotlin] fix invalid code when allOf is used #12594
Conversation
d9b8486
to
4d18245
Compare
@Json(name = "featherType") | ||
val featherType: kotlin.String | ||
|
||
) : Animal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this fix, this produced Animal()
whish fail because Animal
does not hava a constructor.
@jimschubert (2017/09) heart, @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
…ut codegen (#147) Lié à kronostechnologies/micronaut-project-openapi-generator#30 J'ai supprimé le patch pour le générateur kotlin, c'est released dans 6.0.1. (OpenAPITools/openapi-generator#12594)
#10792
I just backported the fix for updateModelForObject from
CSharpNetCoreClientCodegen
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
(6.0.1) (patch release),6.1.x
(breaking changes with fallbacks),7.0.x
(breaking changes without fallbacks)